﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Logistics.Web.Models.Order
{
    [Serializable]
    public class PickupDateInfomation
    {
        public PickupDateInfomation(int daysCount,int timeWidowCount )
        {
            this.HasPickupDate = true;
            this.AvaliablePickupDates = new List<string>();
            this.AvaliablePickupTimeWindows = new List<string>();
            this.AvaliablePickupDateTimeWindows=new PickupDateTimeWindow[daysCount,timeWidowCount];
        }
        public bool HasPickupDate { get; set; }
        public int PickupTimeWindowId { get; set; }
        public List<string> AvaliablePickupDates { get; set; }
        public List<string> AvaliablePickupTimeWindows { get; set; }
        public PickupDateTimeWindow[,] AvaliablePickupDateTimeWindows { get; set; }
        public DateTime? PickupDate { get; set; }
        public class PickupDateTimeWindow
        {
            public DateTime PickupDate { get; set; }
            public int PickupTimeWindow { get; set; }
            public bool CanSelect { get; set; }
            public bool Selected { get; set; }
        }
    }
}